package com.ruoyi.product.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品对象 jy_store_product
 *
 * @author ruoyi
 * @date 2021-11-22
 */
@ApiModel
public class StoreProductJoint extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 门店id */
    private Long storeId;

    /** 商品表id */
    private Long storeProductId;

    /** 门店用户表id */
    private Long storeUserId;

    /** 是否上架 */
    private String state;

    /** 上架人 */
    private Long upUser;

    /** 上架时间 */
    private Date upTime;

    /** 下架人 */
    private Long offUser;

    /** 下架时间 */
    private Date offTime;

    /** 员工佣金 */
    private BigDecimal staffMoney;

    /** 是否有售后 */
    private String isAfterSales;

    /** 售后次数 */
    private Long asNum;

    /** 售后时限开始时间 */
    private Date asStartTime;

    /** 售后时限结束时间 */
    private Date  asEndTime;
    /** 售后手工费 */
    private BigDecimal asMoney;

    public void setStaffMoney(BigDecimal staffMoney)
    {
        this.staffMoney = staffMoney;
    }
    public BigDecimal getStaffMoney()
    {
        return staffMoney;
    }

    public void setIsAfterSales(String isAfterSales)
    {
        this.isAfterSales = isAfterSales;
    }
    public String getIsAfterSales() { return isAfterSales; }

    public void setAsNum(Long asNum)
    {
        this.asNum = asNum;
    }
    public Long getAsNum()
    {
        return asNum;
    }

    public void setAsStartTime(Date asStartTime) { this.asStartTime = asStartTime; }
    public Date getAsStartTime()
    {
        return asStartTime;
    }

    public void setAsEndTime(Date asEndTime)
    {
        this.asEndTime = asEndTime;
    }
    public Date getAsEndTime()
    {
        return asEndTime;
    }

    public void setAsMoney(BigDecimal asMoney)
    {
        this.asMoney = asMoney;
    }
    public BigDecimal getAsMoney()
    {
        return asMoney;
    }

    public void setId(Long id)
    {
        this.id = id;
    }
    public Long getId()
    {
        return id;
    }

    public void setStoreId(Long storeId)
    {
        this.storeId = storeId;
    }
    public Long getStoreId()
    {
        return storeId;
    }

    public void setStoreProductId(Long storeProductId)
    {
        this.storeProductId = storeProductId;
    }
    public Long getStoreProductId()
    {
        return storeProductId;
    }

    public void setStoreUserId(Long storeUserId)
    {
        this.storeUserId = storeUserId;
    }
    public Long getStoreUserId()
    {
        return storeUserId;
    }

    public void setState(String state)
    {
        this.state = state;
    }
    public String getState()
    {
        return state;
    }

    public void setUpUser(Long upUser)
    {
        this.upUser = upUser;
    }
    public Long getUpUser()
    {
        return upUser;
    }

    public void setUpTime(Date upTime)
    {
        this.upTime = upTime;
    }
    public Date getUpTime()
    {
        return upTime;
    }

    public void setOffUser(Long offUser)
    {
        this.offUser = offUser;
    }
    public Long getOfUser()
    {
        return offUser;
    }

    public void setOffTime(Date offTime)
    {
        this.offTime = offTime;
    }
    public Date getOffTime()
    {
        return offTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("storeId", getStoreId())
            .append("storeProductId", getStoreProductId())
            .append("storeUserId", getStoreUserId())
            .append("state", getState())

            .append("upUser", getUpUser())
            .append("upTime", getUpTime())
            .append("ofUser", getOfUser())
            .append("offTime", getOffTime())
            .toString();
    }
}
